var req = createXMLHttpRequest();

function createXMLHttpRequest() {
var ua;
if(window.XMLHttpRequest) {
try {
ua = new XMLHttpRequest();
} catch(e) {
ua = false;
}
} else if(window.ActiveXObject) {
try {
ua = new ActiveXObject(”Microsoft.XMLHTTP”);
} catch(e) {
ua = false;
}
}
return ua;
}

var resultsPlace=”";

function sendRequest(frm, file, place) {
var rnd982g = Math.random();
var str = “”;
str=getForm(frm);
if(str) {
req.open(’GET’, file+’?'+str+’&rnd982g=’+rnd982g);
resultsPlace = place;
req.onreadystatechange = handleResponse;
req.send(null);
}
return false;
}

function handleResponse() {
if(req.readyState == 4){
var response = req.responseText;
document.getElementById(resultsPlace).innerHTML = response;
}
}

function getForm(fobj) {
var str = “”;
var ft = “”;
var fv = “”;
var fn = “”;
var els = “”;
for(var i = 0;i 